$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .jx {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    text-align: right;

    img {
      max-width: 100%;
    }
  }

  .title {
    width: 80vw;
    margin: 0 auto 3vw auto;
    padding-top: 10vw;
    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      font-family: 'Montserrat-Regular';
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: 600;
      margin-top: 10px;
    }
  }

  .section1 {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    a {
      color: #111;
      font-size: $fontSize_14;
    }

    span {
      width: 8px;
      height: 2px;
      background-color: rgba(224, 28, 28, 1);
      margin: 0 1vw;
    }

    p {
      color: #666;
      font-size: $fontSize_14;
    }
  }

  .section2 {
    width: 100%;
    margin: 2vw 0;
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .shadow {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      img {
        width: 100%;
      }
    }
  }

  .section3 {
    width: 80vw;
    margin: 4vw auto;

    .box1 {
      display: flex;
      justify-content: space-between;

      .l {
        border-radius: 26px;
        background: #F2F2F2;
        width: 55%;
        position: relative;
        .pic {
          position: absolute;
          left: 0;
          width: 100%;
          height: 100%;
          top:50%;
          transform: translateY(-50%);
          .centerImg {
            position: absolute;
            right:0;
            top:0;
          }
        }
      }

      .r {
        width: 30%;
        padding: 2vw 10% 0 5%;

        .p1 {
          color: #111;
          font-size: $fontSize_36;
          font-weight: bold;
        }

        .des {
          color: #111;
          font-size: 20/$f+vw;
          margin: 1vw 0;
          line-height: 1.7;
        }

        .info {
          p {
            color: #343A40;
            font-size: 20/$f+vw;
            font-weight: 700;
            margin-bottom: 0.6vw;
          }
        }

        .colors {
          display: flex;
          margin: 1vw 0 1.5vw 0;

          .crgb {
            width: 59/$f+vw;
            height: 58/$f+vw;
            margin-right: 1vw;
          }

          .icon {
            width: 59/$f+vw;
            height: 58/$f+vw;
            background: #E6E6E6;
            margin-right: 1vw;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
              max-width: 80%;
              max-height: 80%;
              object-fit: contain;
            }
          }

          .icon:last-child {
            margin-right: 0;
          }
        }

        .btn {
          border: 1px solid rgba(224, 28, 28, 1);
          display: flex;
          align-items: center;
          padding: .5vw 1.5vw;
          border-radius: 30px;
          width: fit-content;
          font-size: $fontSize_18;
          color: #E01C1C;
          transition: all 600ms;

          svg {
            path {
              transition: all 600ms;
            }
          }

          p {
            margin-right: 0.6vw;
            font-weight: bold;
          }

          svg {
            width: 24/$f+vw;
            display: block;
          }

          &:hover {
            background-color: rgba(224, 28, 28, 1);
            color: white;

            svg {
              path {
                stroke: #fff;
              }
            }
          }
        }
      }
    }

    .box2 {
      width: 55%;
      margin-top: 2vw;
      position: relative;

      .prev {
        position: absolute;
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;

        svg {
          width: 40px;

          g {
            transition: all 600ms;
            opacity: .5;
          }
        }

        &:hover {
          svg {
            g {
              opacity: 1;
            }
          }
        }
      }

      .next {
        position: absolute;
        right: -60px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        cursor: pointer;

        svg {
          width: 40px;

          g {
            transition: all 600ms;
            opacity: .5;
          }
        }

        &:hover {
          svg {
            g {
              opacity: 1;
            }
          }
        }
      }

      .swiper-container {
        width: 100%;

        .pic {
          border: 1px solid #DBDBDB;
          transition: all 600ms;
          width: calc(98% - 2px);
          margin: 0 auto;
          cursor: pointer;
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;

          .pic_click {
            height: 190/$f+vw;
          }

          img {
            width: 100%;
            display: block;
            object-fit: cover;
          }

          .play {
            position: absolute;
            right: 10px;
            top: 10px;

            img {
              width: 30px;
            }
          }
        }

        .swiper-slide-active {
          .pic {
            border-color: #E01C1C;
          }
        }
      }
    }
  }

  .section4 {
    width: 80vw;
    margin: 0 auto;

    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: bold;
      font-family: 'Montserrat-Regular';
      margin-top: 10px;
    }

    .pic {
      margin: 3vw 0;

      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .params {
      .item {
        display: flex;
        justify-content: space-around;
        padding: 15px 0;
        background: linear-gradient(90deg, #F2F2F2 0%, rgba(242, 242, 242, 0.00) 100%);

        .l {
          display: flex;
          align-items: center;
          width: 40%;

          &::before {
            width: 20/$f+vw;
            height: 20/$f+vw;
            content: '';
            display: block;
            border-radius: 6px;
            background: #E01C1C;
          }

          p {
            font-size: $fontSize_22;
            color: #111;
            margin-left: 1vw;
            font-weight: bold;
          }
        }
      }

      .item:first-child {
        .l {
          opacity: 0;
        }
      }

      .item:nth-child(2n) {
        background: #fff;
      }
    }
  }

  .section5 {
    width: 80vw;
    margin: 6vw auto;

    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: bold;
      font-family: 'Montserrat-Regular';
      margin-top: 10px;
    }

    .allPic {
      width: 100%;
      margin: 4vw 0;

      .d1 {
        width: 100%;
        display: flex;
        gap: 1.5vw;
        margin-bottom: 1.5vw;

        .item {
          width: 24%;
          position: relative;
          overflow: hidden;

          img {
            width: 100%;
            display: block;
            object-fit: cover;
            height: 300/$f+vw;
            transition: all 600ms;
          }

          .text {
            position: absolute;
            left: 5%;
            bottom: 5%;
            color: white;
            width: 90%;

            .pt {
              font-size: $fontSize_32;
            }

            .des {
              font-size: 20/$f+vw;
              margin-top: 0.5vw;
              height: 3vw;
              word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
            }
          }

          &:hover {
            img {
              transform: scale(1.05);
            }
          }
        }

        .item:first-child {
          width: 50%;
        }
      }

      .d1:nth-child(2n) {
        flex-direction: row-reverse;
      }
    }
  }

  .application {
    margin: 5vw 0 5vw 10vw;

    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: bold;
      font-family: 'Montserrat-Regular';
      margin-top: 10px;
    }

    .swiper-container {
      width: 100%;
      margin-top: 4vw;

      .pic {
        img {
          width: 100%;
          display: block;
          object-fit: cover;
        }
      }
    }

    .swiper-pagination {
      position: static;
      background: #D9D9D9;
      height: 4px;
      width: 100%;
      margin-top: 2vw;

      .swiper-pagination-progressbar-fill {
        background: #E01C1C;
      }
    }
  }

  .section7 {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 6vw;

    .item {
      width: 50%;
      position: relative;

      .bg {
        overflow: hidden;

        img {
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
        }
      }

      .text {
        position: absolute;
        left: 10vw;
        top: 50%;
        transform: translateY(-50%);
        color: white;

        .p1 {
          color: #FFF;
          font-size: $fontSize_54;
          font-weight: 700;
        }

        .p2 {
          color: #FFF;
          font-size: $fontSize_22;
          font-weight: 700;
        }
      }

      .btn {
        position: absolute;
        right: 5%;
        bottom: 5%;
        border: 2px solid white;
        width: fit-content;
        padding: 0.3vw 1.8vw;
        border-radius: 30px;
        transition: all 600ms;

        svg {
          display: block;
          transition: all 600ms;
        }

        &:hover {
          background-color: rgba(224, 28, 28, 1);
          border-color: rgba(224, 28, 28, 1);

          svg {
            transform: translateX(10px);
          }
        }
      }

      &:hover {
        .bg {
          img {
            transform: scale(1.05);
          }
        }
      }
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .8);
    display: none;
    z-index: 100;

    .close {
      position: absolute;
      right: 5%;
      top: 5%;
      cursor: pointer;
      z-index: 100;

      img {
        width: 50px;
      }
    }

    .content {
      width: 100%;

      video {
        width: 80%;
        height: 80vh;
        object-fit: cover;
        display: block;
        margin: 0 auto;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 70px;
    .title{
      width: 90%;
      padding-top: 20px;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
    }
    .section1{
      width: 90%;
      a,p{
        font-size: 14px;
      }
    }
    .section2{
      margin: 15px 0;
    }
    .section3{
      width: 90%;
      margin: 40px auto;
      position: relative;
      .box1{
        flex-direction: column;
        .l{
          width: 100%;
          height: 300px;
          pointer-events: none;
        }
        .r{
          width: 100%;
          padding: 20px 0;
          margin-top: 170px;
          .p1{
            font-size: 24px;
          }
          .des{
            font-size: 16px;
            margin: 10px 0;
          }
          .info{
            p{
              font-size: 14px;
              margin-bottom: 10px;
            }
          }
          .colors{
            margin: 10px 0 20px 0;
            .crgb{
              width:30px;
              height: 30px;
              margin-right: 10px;
            }
            .icon{
              width:30px;
              height: 30px;
            }
          }
          .btn{
            font-size: 16px;
            padding: 5px 25px;
             svg{
              width: 15px;
             }
          }
        }
      }
      .box2{
        width: 100%;
        position: absolute;
        left: 0;
        top:310px;
        .prev{
          left: 10px;
          svg{
            width: 20px;
          }
        }
        .next{
          right: 10px;
          svg{
            width: 20px;
          }
        }
        .swiper-container{
          .pic{
            .pic_click{
              height: 150px;
            }
            .play{
              img{
                width: 15px;
              }
            }
          }
        }
      }
    }
    .section4{
      width: 90%;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
      .pic{
        margin: 20px 0;
      }
      .params{
        .item{
          flex-direction: column;
          padding: 10px 0;
          .l{
            width: 100%;
            &::before{
              width: 6px;
              height: 6px;
              margin: 0 10px;
            }
            p{
              font-size: 14px;
              margin-left: 0;
              width: calc(98% - 6px);
            }
          }
        }
      }
    }
    .section5{
      width: 90%;
      margin: 40px auto;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
      .allPic{
        margin: 30px 0;
        .d1{
          flex-direction: column !important;
          .item{
            width: 100% !important;
            margin-bottom: 12px;
            img{
              height: auto;
            }
            .text{
               .pt{
                font-size: 18px;
               }
               .des{
                font-size: 14px;
                height: auto;
               }
            }
          }
        }
      }
    }
    .application{
      margin: 30px 0 30px 5%;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
      .swiper-pagination{
        margin-top: 10px;
      }
    }
    .section7{
      flex-direction: column;
      .item{
        width: 100%;
        .text{
          left: 5%;
          .p1{
            font-size: 20px;
          }
          .p2{
            font-size: 16px;
          }
        }
        .btn{
          padding: 5px 25px;
          bottom: 20px;
        }
      }
    }
    .dialog {
      .close {
        top: 80px;
      }

      .content {
        video {
          height: 60vh;
        }
      }
    }
  }
}